Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(engine): parallel storage roots #10666

Merged
merged 9 commits into from
Sep 12, 2024
Merged

perf(engine): parallel storage roots #10666

merged 9 commits into from
Sep 12, 2024

Conversation

rkrasiuk
Copy link
Member

@rkrasiuk rkrasiuk commented Sep 2, 2024

Description

Enables parallel storage roots in consensus engine. Parallel calculation will be skipped if persistence is currently in progress or if consistency check fails during calculation, it will fall back to regular one

@rkrasiuk rkrasiuk added C-perf A change motivated by improving speed, memory usage or disk footprint A-consensus Related to the consensus engine labels Sep 2, 2024
@rkrasiuk rkrasiuk marked this pull request as ready for review September 12, 2024 11:52
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice,
pedantic style and doc nits

Comment on lines +2174 to +2175
let persistence_in_progress = self.persistence_state.in_progress();
if !persistence_in_progress {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's inline this and get rid of the tmp var

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

temp var cuz it's used later for logging

crates/engine/tree/src/tree/mod.rs Outdated Show resolved Hide resolved
crates/engine/tree/src/tree/mod.rs Show resolved Hide resolved
@rkrasiuk rkrasiuk added this pull request to the merge queue Sep 12, 2024
Merged via the queue into main with commit acdb7b7 Sep 12, 2024
35 checks passed
@rkrasiuk rkrasiuk deleted the rkrasiuk/engine-parallel branch September 12, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-consensus Related to the consensus engine C-perf A change motivated by improving speed, memory usage or disk footprint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants